package com.example.mapper;

import com.example.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    User selectUserWithRolesByUsername(String username);
    List<User> selectUsersWithRolesAndMenusByCondition(
            @Param("username") String username,
            @Param("email") String email,
            @Param("status") Integer status);
    List<User> selectAllUsers();
}